#include"Heap.h"

int main()
{
	Hp hp;
	HpInit(&hp);
	HeapPush(&hp, 1);
	HeapPush(&hp, 2);
	HeapPush(&hp, 3);
	HeapPush(&hp, 4);
	HeapPush(&hp, 5);
	HeapPush(&hp, 6);
	HeapPush(&hp, 7);
	HeapPush(&hp, 8);
	HeapPush(&hp, 9);
	HeapPush(&hp, 10);
	HeapPush(&hp, 11);
	HeapPush(&hp, 12);
	HeapPush(&hp, 13);
	HeapPush(&hp, 14);
	HeapPush(&hp, 15);
	HeapPush(&hp, 16);
	HeapPush(&hp, 17);
	HeapPush(&hp, 19);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	printf("\n");
	return 0;
}